<?php

namespace Platform\Models\Scenario;

use Platform\Models\BaseModel;

class ScenarioNode extends BaseModel {

    const TABLE_NAME = 'scenario_node';

    public function initialize() {
        parent::initialize();
        $this->setSource(self::TABLE_NAME);
    }

    private $id;
    private $name;
    private $scenarioId;
    private $forestId;
    private $nodeType;
    private $type;
    private $character;
    private $foregroundImgId;
    private $videoId;
    private $musicId;
    private $roleId;
    private $backgroundImgId;
    private $isTriggerEnd;
    private $isReuse;
    private $extend;
    private $isAddScore;
    private $showType;
    private $effects;
    private $backgroundMusicId;

    public function getBackgroundMusicId() {
        return $this->backgroundMusicId;
    }

    public function setBackgroundMusicId($backgroundMusicId) {
        $this->backgroundMusicId = $backgroundMusicId;
    }

    public function getEffects() {
        return $this->effects;
    }

    public function setEffects($effects) {
        $this->effects = $effects;
    }

    public function getId() {
        return $this->id;
    }

    public function getName() {
        return $this->name;
    }

    public function getScenarioId() {
        return $this->scenarioId;
    }

    public function getForestId() {
        return $this->forestId;
    }

    public function getNodeType() {
        return $this->nodeType;
    }

    public function getType() {
        return $this->type;
    }

    public function getCharacter() {
        return $this->character;
    }

    public function getForegroundImgId() {
        return $this->foregroundImgId;
    }

    public function getVideoId() {
        return $this->videoId;
    }

    public function getMusicId() {
        return $this->musicId;
    }

    public function getRoleId() {
        return $this->roleId;
    }

    public function getBackgroundImgId() {
        return $this->backgroundImgId;
    }

    public function getIsTriggerEnd() {
        return $this->isTriggerEnd;
    }

    public function getIsReuse() {
        return $this->isReuse;
    }

    public function getExtend() {
        return $this->extend;
    }

    public function setId($id) {
        $this->id = $id;
    }

    public function setName($name) {
        $this->name = $name;
    }

    public function setScenarioId($scenarioId) {
        $this->scenarioId = $scenarioId;
    }

    public function setForestId($forestId) {
        $this->forestId = $forestId;
    }

    public function setNodeType($nodeType) {
        $this->nodeType = $nodeType;
    }

    public function setType($type) {
        $this->type = $type;
    }

    public function setCharacter($character) {
        $this->character = $character;
    }

    public function setForegroundImgId($foregroundImgId) {
        $this->foregroundImgId = $foregroundImgId;
    }

    public function setVideoId($videoId) {
        $this->videoId = $videoId;
    }

    public function setMusicId($musicId) {
        $this->musicId = $musicId;
    }

    public function setRoleId($roleId) {
        $this->roleId = $roleId;
    }

    public function setBackgroundImgId($backgroundImgId) {
        $this->backgroundImgId = $backgroundImgId;
    }

    public function setIsTriggerEnd($isTriggerEnd) {
        $this->isTriggerEnd = $isTriggerEnd;
    }

    public function setIsReuse($isReuse) {
        $this->isReuse = $isReuse;
    }

    public function setExtend($extend) {
        $this->extend = $extend;
    }

    public function getIsAddScore() {
        return $this->isAddScore;
    }

    public function setIsAddScore($isAddScore) {
        $this->isAddScore = $isAddScore;
    }

    public function getShowType() {
        return $this->showType;
    }

    public function setShowType($showType) {
        $this->showType = $showType;
    }

    public function columnMap() {
        //列名 =》 属性名
        return [
            "id" => "id",
            "name" => "name",
            "scenario_id" => "scenarioId",
            "forest_id" => "forestId",
            'node_type' => 'nodeType',
            'type' => 'type',
            'character' => 'character',
            'foreground_img_id' => 'foregroundImgId',
            'video_id' => 'videoId',
            "music_id" => "musicId",
            "role_id" => "roleId",
            'background_img_id' => 'backgroundImgId',
            'is_trigger_end' => 'isTriggerEnd',
            'is_reuse' => 'isReuse',
            'extend' => 'extend',
            "is_add_score" => "isAddScore",
            "show_type" => "showType",
            "effects" => "effects",
            "background_music_id" => "backgroundMusicId",
        ];
    }

}
